import React, { Component } from 'react'

export default class Child extends Component {
  state = {
    title: 'hello'
  }

  render() {
    return (
      <>
        <h1>Child：</h1>
        <div>
          {this.props.children(this.state.title)}
        </div>
      </>
    )
  }
}
